package week01;

public class TicketMaker1 {

    private static TicketMaker1 t1=new TicketMaker1();
    public static TicketMaker1 getinstance() {

        return t1;
    }
    private static int ticket=1000;
    public int  getNextTicketNumber(){
        ticket=ticket+1;
        return ticket;
    }
        private TicketMaker1(){

    }
}
